<script setup lang="ts">
import type { testType } from '@/interface/registration'
import testcom from '@common/src/components/testComonents.vue'
const farmeWork = getCurrentInstance().proxy.$farmeWork
const isLogin: testType = {
    isLogin: farmeWork.isLogin
}
const router = useRouter()

function go() {
    router.push('/test').catch((err) => {
        console.log(err)
    })
}
</script>

<template>
    <div @click="go">挂号页面</div>
    <div @click="router.push('/supplier')">供应商管理</div>
    <div class="text">scss样式</div>
    <div>farmeWork数据 {{ isLogin }}</div>
    <div>
        <div>
            farmeWork公共组件
        </div>
        <testcom />
    </div>
    <div>
        <div>矢量库图标</div>
        <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-0-29"></use>
        </svg>

    </div>
</template>

<style lang="scss" scoped>
.text {
    color: red;
}

.icon {
    font-size: 28px;
}
</style>
